package com.cyy.common.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 关注
 * </p>
 *
 * @author 曹云友
 * @since 2024-04-18
 */
@Getter
@Setter
@TableName("follow")
public class Follow implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 被关注用户id
     */
    private Integer followedUserId;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间", example = "创建时间")
    private LocalDateTime createTime;
}
